<?php

/*
|--------------------------------------------------------------------------
| Module Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for the module.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::group(['prefix' => 'home'], function() {
    //用户登录
    Route::post('/login', 'IndexController@login');

    //网站首页
    Route::get('/index', 'IndexController@index');
    //供应产品
    Route::get('/classify', 'IndexController@classify');
    //企业新闻
    Route::get('/news', 'IndexController@news');
    //企业招聘
    Route::get('/people', 'IndexController@people');
    //联系我们
    Route::get('/contact', 'IndexController@contact');
    //我的订单
    Route::get('/order', 'IndexController@order');
    //购物车列表及添加
    Route::match(['get','post'],'/cart', 'IndexController@cart');
//    购物车删除
    Route::post('/cartDel', 'IndexController@cartDel');
    //空购物车
    Route::get('/cart-null', 'IndexController@cartnull');
    //详情页
    Route::get('/detail/{id}', 'IndexController@detail');
    //立即购买
    Route::get('/orderunfinished', 'IndexController@orderunfinished');




    //关于我们
    Route::get('/aboutUs', 'IndexController@aboutUs');
    //新闻中心
    Route::get('/newsCenter/{typeID?}', 'NewsController@newsList');
    Route::get('/newsInfo/{id}','NewsController@newsInfo');
    //产品技术
    Route::get('/productTec', 'ProductController@productTec');
    Route::get('/productInfo/{id}', 'ProductController@productInfo');
    //合作伙伴
    Route::get('/partner', 'IndexController@partner');
    Route::get('/partnerInfo/{id}', 'IndexController@partnerInfo');
    //成功案例
    Route::get('/successCase', 'SuccessCaseController@index');
    Route::get('/successCaseInfo/{id}', 'SuccessCaseController@info');
    //人才招聘
    Route::get('/talentsHr', 'InviteController@talentsHr');
    Route::get('/talentsInfo/{id}', 'InviteController@talentsInfo');
    //留言
    Route::get('/message', 'MessageController@message');
    Route::post('/messageAdd', 'MessageController@addMessage');
    // 联系我们
    Route::get('/contactUs', 'IndexController@contactUs');
    Route::get('/joinUs', 'IndexController@joinUs');
});
